package pojo;

public class Product {
    private int id;
    private String goodsname;
    private double price;
    private int typeid;


    public Product() {
    }

    public Product(int id, String goodsname, double price, int typeid) {
        this.id = id;
        this.goodsname = goodsname;
        this.price = price;
        this.typeid = typeid;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return goodsname
     */
    public String getGoodsname() {
        return goodsname;
    }

    /**
     * 设置
     * @param goodsname
     */
    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return typeid
     */
    public int getTypeid() {
        return typeid;
    }

    /**
     * 设置
     * @param typeid
     */
    public void setTypeid(int typeid) {
        this.typeid = typeid;
    }

    public String toString() {
        return "Product{id = " + id + ", goodsname = " + goodsname + ", price = " + price + ", typeid = " + typeid + "}";
    }
}
